import axios from "@/plugins/axios";
const { http } = axios;
export const updatePwd = {
  post: params => http.post("/login/updatePwd", params)
};
export const getPictureCode = {
  get: params => http.get("/login/getPictureCode", params)
};
export const login = {
  post: params => http.post("/login/check", params)
};
export const queryMenus = {
  post: params => http.post("/login/queryMenus", params)
};

export const logout = {
  post: params => http.post("/login/out ", params)
};
export const getInfo = {
  post: params => http.post("/getUserInfo", params)
};
// 教师
export const findEmp = {
  post: params => http.post("/employee/findEmp", params)
};
export const updateEmp = {
  post: params => http.post("/employee/updateEmp", params)
};
export const addEmp = {
  post: params => http.post("/employee/addEmp", params)
};
export const delEmp = {
  post: params => http.post("/employee/delEmp", params)
};
//学生
export const findStudents = {
  post: params => http.post("/student/findStudents", params)
};
export const updateStuCardNum = {
  post: params => http.post("/updateStuCardNum", params)
}
export const exportStudent = {
  post: params => http.post("/student/exportStudent", params)
};
export const importStudentMuban = {
  post: params => http.post("/student/importStudentMuban", params)
};
export const delStudent = {
  post: params => http.post("/student/delStudent", params)
};
export const updateStudent = {
  post: params => http.post("/student/updateStudent", params)
}; 
export const addStudent = {
  post: params => http.post("/student/addStudent", params)
};
// 导入学生
export const importStudent = {
  post: params => http.post("/student/importStudent", params)
};

export const findSign = {
  post: params => http.post("/payment/findSign", params)
};
//工资
export const findSalary = {
  post: params => http.post("/payment/findSalary", params)
};
export const addSalary = {
  post: params => http.post("/payment/addSalary", params)
};
export const delSalary = {
  post: params => http.post("/payment/delSalary", params)
};

export const findPaymentLog = {
  post: params => http.post("/payment/findPaymentLog ", params)
};
export const addPaymentLog = {
  post: params => http.post("/payment/addPaymentLog ", params)
};
export const updatePaymentLog = {
  post: params => http.post("/payment/updatePaymentLog ", params)
};
export const delPaymentLog = {
  post: params => http.post("/payment/delPaymentLog ", params)
};
export const importPaymentMuban = {
  post: params => http.post("/payment/importPaymentMuban ", params)
};
export const importPayment = {
  post: params => http.post("/payment/importPayment ", params)
};
export const exportPayment = {
  post: params => http.post("/payment/exportPayment ", params)
};

// 支出
export const findCost = {
  post: params => http.post("/payment/findCost", params)
};
export const addCost = {
  post: params => http.post("/payment/addCost", params)
};
export const delCost = {
  post: params => http.post("/payment/delCost", params)
};  
// h5图片正删改查
export const addImgConfig = {
  post: params => http.post("/lession/addImgConfig  ", params)
};
export const getImgConfig = {
  post: params => http.post("/lession/getImgConfig", params)
};
export const updateImgConfig = {
  post: params => http.post("/lession/updateImgConfig", params)
};
export const delImgConfig = {
  post: params => http.post("/lession/delImgConfig", params)
};
// h5视频正删改查
export const getStuVideo = {
  post: params => http.post("/lession/getStuVideo", params)
};                 
export const addStuVideo = {
  post: params => http.post("/lession/addStuVideo", params)
}; 
export const delStuVideo = {
  post: params => http.post("/lession/delStuVideo", params)
}; 
export const updateStuVideo = {
  post: params => http.post("/lession/updateStuVideo", params)
};
// 学费设置菜单
export const findLessionTypeCard = {
  post: params => http.post("/lession/findLessionTypeCard", params)
};
export const updateLessionTypeCard = {
  post: params => http.post("/lession/updateLessionTypeCard", params)
};
export const addLessionTypeCard = {
  post: params => http.post("/lession/addLessionTypeCard", params)
};
export const delLessionTypeCard = {
  post: params => http.post("/lession/delLessionTypeCard", params)
};
      
// 课程
export const findLessions = {
  post: params => http.post("/lession/findLessions", params)
};
export const addLessions = {
  post: params => http.post("/lession/addLessions", params)
};
export const updateLessions = {
  post: params => http.post("/lession/updateLessions", params)
};
export const delLessions = {
  post: params => http.post("/lession/delLessions", params)
};
// 类型       
export const findLessionType = {
  post: params => http.post("/lession/findLessionType", params)
};
// 排课      
export const findEmpClass = {
  post: params => http.post("/class/findEmpClass", params)
};
export const addclass = {
  post: params => http.post("/class/addclass", params)
};
export const findClassStu = {
  post: params => http.post("/class/findClassStu", params)
};
export const updateClassStu = {
  post: params => http.post("/class/updateClassStu", params)
};
export const delclass = {
  post: params => http.post("/class/delclass", params)
};
export const addType = {
  post: params => http.post("/lession/addLessionType", params)
};
export const updateType = {
  post: params => http.post("/lession/updateLessionType", params)
};
export const delType = {
  post: params => http.post("/lession/delLessionType", params)
};
      
// 卡
export const findLessionCard = {
  post: params => http.post("/lession/findLessionCard", params)
};
export const addCard = {
  post: params => http.post("/lession/addLessionCard", params)
};
export const updateCard = {
  post: params => http.post("/lession/updateLessionCard", params)
};
export const delCard = {
  post: params => http.post("/lession/delLessionCard", params)
};
         
export const findKaojiList = {
  post: params => http.post("/kaoji/findKaojiList", params)
};
export const addKaoji = {
  post: params => http.post("/kaoji/addKaoji", params)
};
export const updateKaoji = {
  post: params => http.post("/kaoji/updateKaoji", params)
};
export const delKaoji = {
  post: params => http.post("/kaoji/delKaoji", params)
};
//user
export const findUsers = {
  post: params => http.post("/user/findUsers", params)
};
export const addUser = {
  post: params => http.post("/user/addUser", params)
};
export const resetPassword = {
  post: params => http.post("/user/resetPassword", params)
};
export const delUser = {
  post: params => http.post("/user/delUser", params)
};
export const updateUser = {
  post: params => http.post("/user/updateUser", params)
};
// 管理员
export const findAdminUsers = {
  post: params => http.post("/user/findAdminUsers", params)
};
export const updateAdminUser = {
  post: params => http.post("/user/updateAdminUser", params)
};
export const addAdminUser = {
  post: params => http.post("/user/addAdminUser", params)
};
export const delAdminUser = {
  post: params => http.post("/user/delAdminUser", params)
};

export const findOperLog = {
  post: params => http.post("/user/findOperLog", params)
};
//签到
export const findSignLog = {
  post: params => http.post("/payment/findSignLog", params)
};
export const dosign = {
  post: params => http.post("/payment/dosign", params)
};
export const h5doSign = {
  post: params => http.post("/lession/h5doSign", params)
};
export const findstuinfoBystucardnum = {
  post: params => http.post("/stucard/findstuinfoBystucardnum", params)
};

export const delSignLog = {
  post: params => http.post("/payment/delSignLog", params)
};
// 统计
export const paymentStatistics = {
  post: params => http.post("/statistics/paymentStatistics", params)
};
export const lessionStatistics = {
  post: params => http.post("/statistics/lessionStatistics", params)
}
export const usedtimesStatistics = {
  post: params => http.post("/statistics/usedtimesStatistics", params)
}
// 商品管理
export const findProduct = {
  post: params => http.post("/product/findProduct", params)
}
export const updateProduct = {
  post: params => http.post("/product/updateProduct", params)
}
export const delProduct = {
  post: params => http.post("/product/delProduct", params)
}
export const addProduct = {
  post: params => http.post("/product/addProduct", params)
}
// 商品类别
export const findProductType = {
  post: params => http.post("/product/findProductType", params)
}
export const addProductType = {
  post: params => http.post("/product/addProductType", params)
}
export const delProductType = {
  post: params => http.post("/product/delProductType", params)
}
export const updateProductType = {
  post: params => http.post("/product/updateProductType", params)
}
// 公告
export const findNotice = {
  post: params => http.post("/notice/findNotice", params)
}
export const updateNotice = {
  post: params => http.post("/notice/updateNotice", params)
}
export const delNotice = {
  post: params => http.post("/notice/delNotice", params)
}
export const addNotice = {
  post: params => http.post("/notice/addNotice", params)
}
// 销售记录
export const findProductSaleLog = {
  post: params => http.post("/product/findProductSaleLog", params)
}
export const delProductSaleLog = {
  post: params => http.post("/product/delProductSaleLog", params)
}
export const updateProductSaleLog = {
  post: params => http.post("/product/updateProductSaleLog", params)
}
export const addProductSaleLog = {
  post: params => http.post("/product/addProductSaleLog", params)
}
// 机构
export const findTenantList = {
  post: params => http.post("/user/findTenantList", params)
}
export const updateTenant = {
  post: params => http.post("/user/updateTenant", params)
}
export const addTenant = {
  post: params => http.post("/user/addTenant", params)
}
export const delTenant = {
  post: params => http.post("/user/delTenant", params)
}
// 角色       
export const findRoleList = {
  post: params => http.post("/user/findRoleList", params)
}
export const updateRole = {
  post: params => http.post("/user/updateRole", params)
}
export const addRole = {
  post: params => http.post("/user/addRole", params)
}
export const delRole = {
  post: params => http.post("/user/delRole", params)
}
// 权限
export const getRoleFunction = {
  post: params => http.post("/user/getRoleFunction", params)
}
export const resetRoleFunction = {
  post: params => http.post("/user/resetRoleFunction", params)
}
export const getAllFunction = {
  post: params => http.post("/user/getAllFunction", params)
}
// 短信通知
export const sendDXtoClassStu = {
  post: params => http.post("/class/sendDXtoClassStu", params)
}
// 班级
export const addClass = {
  post: params => http.post("/class/addClass", params)
}
export const findClass = {
  post: params => http.post("/class/findClass", params)
}
export const updateClass = {
  post: params => http.post("/class/updateClass", params)
}
export const delClass = {
  post: params => http.post("/class/delClass", params)
}
export const findLession = {
  post: params => http.post("/lession/findLession", params)
}
export const updateConfiguration = {
  post: params => http.post("/class/updateConfiguration", params)
}
export const findConfiguration = {
  post: params => http.post("/class/findConfiguration", params)
}
// 考试
export const findTest = {
  post: params => http.post("/test/findTest", params)
}
export const updateTest = {
  post: params => http.post("/test/updateTest", params)
}
export const addTest = {
  post: params => http.post("/test/addTest", params)
}
export const delTest = {
  post: params => http.post("/test/delTest", params)
}
export const findTestScore = {
  post: params => http.post("/test/findTestScore", params)
}
export const updateTestScore = {
  post: params => http.post("/test/updateTestScore", params)
}
export const delTestScore = {
  post: params => http.post("/test/delTestScore", params)
}
